﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess;
namespace Business
{
    public class MonHoc_BUL
    {
        MonHoc_DA da = new MonHoc_DA();
        public List<DIEMHOCSINH> Loaddata()
        {
            return da.Loaddata();
        }
        public bool Them(string hoten, string lop, string monhoc, string hocky, float d15, float diem1t, float dtb)
        {
            if (da.Them(hoten, lop, monhoc, hocky, d15, diem1t, dtb))
                return true;
            else
                return false;
        }
        public bool Sua(string hoten, string mon, string hocky, float d15, float diem1t, float dtb)
        {
            if (da.Sua(hoten, mon, hocky, d15, diem1t, dtb))
                return true;
            else
                return false;
        }
        public bool Xoa(string hoten,string mon)
        {
            if (da.Xoa(hoten,mon))
                return true;
            else
                return false;
        }
        public List<Object> LayHS(string lop)
        {
            return da.LayHS(lop);
        }
        public bool KT(string lop, string ten, string mon, string hk)
        {
            if (da.KT(lop, ten, mon, hk))
                return true;
            else
                return false;
        }
        //.......Tong ket mon.......
        public List<Object> Laymon(string hocky)
        {
            return da.Laymon(hocky);
        }
        public List<Object> Laymonkchk()
        {
            return da.Laymonkchk();
        }
        public List<TONGKETMON> Loaddata(string tenm, string hk)
        {
            return da.Loaddata(tenm,hk);
        }
        public List<TONGKETMON> LoadTB()
        {
            return da.LoadTB();
        }
        //...............
        public bool ThemTKM(string tenlop, int siso)
        {
            if (da.ThemTKM(tenlop, siso))
                return true;
            else
                return false;
        }
        public bool CapnhatTKM(string tenlop, int siso)
        {
            if (da.CapnhatTKM(tenlop, siso))
                return true;
            else
                return false;
        }
        public bool XoaTKM(string tenlop)
        {
            if (da.XoaTKM(tenlop))
                return true;
            else
                return false;
        }
        public bool Capnhatl2(string tenlop,string hk, string mon, int sld, string tile)
        {
            if (da.Capnhatl2(tenlop,hk,mon,sld,tile))
                return true;
            else
                return false;
        }
        public string Laydiemdau(string tenm)
        {
            return da.Laydiemdau(tenm);
        }
        public int SLD(float dtb,string lop, string hk, string mon)
        {
            return da.SLD(dtb,lop,hk,mon);
        }
        public bool Theml2(string tenl, string mon, string hk, int ss, int sld, string tile)
        {
            if (da.Theml2(tenl, mon, hk, ss,sld,tile))
                return true;
            else
                return false;
        }
        public bool ktl2(string lop, string mh)
        {
            if (da.ktl2(lop, mh))
                return true;
            else
                return false;
        }
        public int ktl3(string lop, string mh, string hk)
        {
            return da.ktl3(lop,mh,hk);
        }
        public int ktl4(string lop, string mh, string hk)
        {
            return da.ktl4(lop,mh,hk);
        }
        //....................
        //public int DDD(string lop)
        //{
        //    return da.DDD(lop);
        //}
        public bool ThemTKHK(string tenl, string hk,int ss, string tl)
        {
            if (da.ThemTKHK(tenl,hk,ss,tl))
                return true;
            else
                return false;
        }
        public void CapnhatTKHK(string tenl,string hk,int ss,int sld,string tl)
        {
            da.CapnhatTKHK(tenl, hk, ss, sld, tl);
        }
        public int KTHK1(string lop, string hk)
        {
            return da.KTHK1(lop,hk);
        }
        public int KTHK2(string lop, string hk)
        {
            return da.KTHK2(lop,hk);
        }
        public float TT(string ten, string lop, string hk)
        {
            return da.TT(ten, lop, hk);
        }
        public int LaySLD(string lop, string hk)
        {
            return da.LaySLD(lop,hk);
        }
        //...................
        public bool Themmon(string ten, string hk)
        {
            if (da.Themmon(ten, hk))
                return true;
            else
                return false;
        }
        public bool Xoamon(string ten, string hk)
        {
            if (da.Xoamon(ten, hk))
                return true;
            else
                return false;
        }
        public List<MONHOC> LoadMH()
        {
            return da.LoadMH();
        }
    }
}
